import { $Http } from '@/config/service/http';

export enum Api {
  // 报表
  borrowRecordPage = '/dms/reportForm/borrowRecordPage', // 档案借阅记录
  borrowReportFormPage = '/dms/reportForm/borrowReportFormPage', // 档案借阅记录报表
  exportAllBorrowRecordPage = '/dms/reportForm/exportAllBorrowRecordPage', // 导出全部借阅记录
  exportAllBorrowReportFormPage = '/dms/reportForm/exportAllBorrowReportFormPage', // 导出全部档案借阅记录
  exportAllInventoryTaskReportForm = '/dms/reportForm/exportAllInventoryTaskReportForm', // 导出全部盘点任务记录
  exportBorrowRecordPage = '/dms/reportForm/exportBorrowRecordPage', // 导出选中借阅记录
  exportBorrowReportFormPage = '/dms/reportForm/exportBorrowReportFormPage', // 导出选中档案借阅记录
  exportInventoryTaskReportForm = '/dms/reportForm/exportInventoryTaskReportForm', // 导出盘点任务记录
  inventoryResultPage = '/dms/reportForm/inventoryResultPage', // 盘点任务记录报表
  inventoryTaskReportForm = '/dms/reportForm/inventoryTaskReportForm', // 盘点任务记录报表
  previewInfo = '/dms/reportForm/previewInfo', // 预览详情
  // 档案数据看板
  boardBorrowAdventList = '/dms/dataBoard/archivesBorrowAdventList', // 档案借阅临期
  boardData = '/dms/dataBoard/archivesData', // 看板数据
  boardTypeDistribution = '/dms/dataBoard/archivesTypeDistribution', // 档案类型分布
  boardLastSixMonthsData = '/dms/dataBoard/getLastSixMonthsData', // 获取近六个月的数据
  boardLastThreeMonthsData = '/dms/dataBoard/getLastThreeMonthsData' // 获取近三个月的数据
}

export const boardBorrowAdventList = (params) => {
  return $Http.api(Api.boardBorrowAdventList, params, 'post');
};

export const boardData = (params) => {
  return $Http.api(Api.boardData, params, 'post');
};

export const boardTypeDistribution = (params) => {
  return $Http.api(Api.boardTypeDistribution, params, 'post');
};

export const boardLastSixMonthsData = (params) => {
  return $Http.api(Api.boardLastSixMonthsData, params, 'post');
};

export const boardLastThreeMonthsData = (params) => {
  return $Http.api(Api.boardLastThreeMonthsData, params, 'post');
};
